From 0593b939c6cb733b6131d7264d3296a031c0a988 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 13 Mar 2024 15:00:34 +0000
Subject: mobile: Add loading spinners when the data is being fetched

---
 packages/mobile/app/dashboard/lists/[slug].tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/mobile/app/dashboard/lists/[slug].tsx')

diff --git a/packages/mobile/app/dashboard/lists/[slug].tsx b/packages/mobile/app/dashboard/lists/[slug].tsx
index 5ebc4446..54744874 100644
--- a/packages/mobile/app/dashboard/lists/[slug].tsx
+++ b/packages/mobile/app/dashboard/lists/[slug].tsx
@@ -2,6 +2,7 @@ import { useLocalSearchParams, Stack } from "expo-router";
 import { View } from "react-native";
 
 import BookmarkList from "@/components/bookmarks/BookmarkList";
+import FullPageSpinner from "@/components/ui/FullPageSpinner";
 import { api } from "@/lib/trpc";
 
 export default function ListView() {
@@ -12,8 +13,7 @@ export default function ListView() {
   const { data: list } = api.lists.get.useQuery({ listId: slug });
 
   if (!list) {
-    // TODO: Spinner
-    return <View />;
+    return <FullPageSpinner />;
   }
 
   return (
-- 
cgit v1.3-1-g0d28

